import axios from "../../utils/request"
import qs from 'qs'
// 获取医疗药品列表
export const drugslist = (params: any) => axios({
    url: '/drugs/list',
    method: 'get',
    params
})
// 修改医疗药品
export const drugsEdit = (params: any) => axios({
    url: '/drugs/edit',
    method: 'get',
    params
})
// 添加医疗药品
// export const drugs​Add = (params: any) => axios({
//     url: '​/drugs​/add',
//     method: 'post',
//     params
// })
// 删除医疗药品
export const drugsDel = (params: any) => axios({
    url: '/drugs/del',
    method: 'get',
    params
})
// 批量删除医疗药品
export const drugsBatchdel = (params: any) => axios({
    url: '/drugs/batchdel',
    method: 'post',
    params
})
// 医疗药品多条件搜索查询
// export const drugsBatchdel = (params:any) => axios({
//     url: '/drugs/search',
//     method: 'get',
//     params
// })
//处方-根据药品名智能搜索药品(返回top10)
export const recipelDrugsSearch = (params: any) => axios({
    url: '/recipel/drugs_search',
    method: 'get',
    params
})
// 查询全科室处方列表
export const getRecipelList = (params: any) => axios({
    url: '/recipel/list',
    method: 'get',
    params
})
// 医生开具处方
export const recipelAdd = (data: any) => axios({
    url: '/recipel/add',
    method: 'post',
    data
})
// 根据处方id查询处方详情
export const recipelInfobyid = (params: any) => axios({
    url: '/recipel/infobyid',
    method: 'get',
    params
})
// 根据处方id del
export const recipelDel = (params: any) => axios({
    url: '/recipel/del',
    method: 'get',
    params:params
})
// 批量删除处方
export const recipelBatchdel = (data: any) => axios({
    url: '/recipel/batchdel',
    method: 'post',
    data
})
